package com.javademo.callable;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.Callable;

@Slf4j
public class FutureTest {
    public static void main(String[] args) {
        log.info("hello world!");
    }

    class Task implements Callable<String> {
        @Override
        public String call() throws Exception {
            return "hello world!";
        }
    }
}
